package com.book.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 图书上架信息表
 * </p>
 *
 * @author zhanglin
 * @since 2022-09-16 14:54:20
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("book_putaway")
public class BookPutaway implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键 id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 图书编号 = 图书馆号+楼层+书架号+排号+格号+序号
     */
    @TableField("book_num")
    private String bookNum;

    /**
     * 图书的主键
     */
    @TableField("book_id")
    private String bookId;

    /**
     * 图书馆号
     */
    @TableField("library_num")
    private Integer libraryNum;

    /**
     * 楼层
     */
    @TableField("floor_num")
    private Integer floorNum;

    /**
     * 书架号
     */
    @TableField("bookrack_num")
    private Integer bookrackNum;

    /**
     * 排号
     */
    @TableField("row_num")
    private Integer rowNum;

    /**
     * 格号
     */
    @TableField("grid_num")
    private Integer gridNum;

    /**
     * 序号
     */
    @TableField("order_num")
    private Integer orderNum;


}
